﻿using Pay.Data;
using Pay.DTO;
using Pay.IService;
using Pay.Service.Cache;
using System;
using System.Collections.Generic;

namespace Pay.Service.Service {
    public class EntrepotService : ServiceBase, IEntrepotService, IDisposable {
        private IUnitOfWork _iUnitOfWork;

        public EntrepotService(IUnitOfWork iUnitOfWork, IMerchantService iMerchantService) : base(iUnitOfWork) {
            _iUnitOfWork = iUnitOfWork;
        }

        /// <summary>
        /// 集散中心列表
        /// </summary>
        /// <returns></returns>
        public List<entrepot_dto> GetAll() {
            return context.Entrepots.FromCache<Entrepot, entrepot_dto>("Entrepot");
        }

    }
}
